﻿{extends file="../home.html"}

{block name="title"}{$head_title}{/block}
	
{block name="css"}
{/block}

{block name="content"}
<!--s主内容-->
<section class="content-wrapper">
  <div class="content-container container">
  	<!-- s面包屑导航 -->
  	{include file="../breadcrum_nav.html"}
  	<!-- e面包屑导航 -->
    <!-- s分类 -->
    <div class="col-left">
    {include file="../common_personal_nav.html"}
	</div>	
    <!-- e分类 -->
    <!-- s主内容 -->
    <div class="col-main">
		{include file="../common_personal_header.html"}
		<!-- s需求列表 -->
		<div class="user-main">
			<!-- s记录 -->
			<table class="table table-striped table-bordered">
				<thead>
					<tr>
						<th>需求列表</th>
					</tr>
				</thead>
				{if !$requirement_list}
				<thead>
					<tr>
						<th style="text-align:center;font-weight:normal;">暂无需求记录</th>
					</tr>
				</thead>
				{/if}
				{if $requirement_list}				
			    <thead>
		          <tr>
		            <th>希望解决时间</th>
		            <th>问题描述</th>
		            <th>提交时间</th>
		            <th>有无附件</th>
		            <th>状态</th>
		            <th>操作</th>
		          </tr>
		        </thead>
		        <tbody>
				{foreach from=$requirement_list item=require}		        	
		          <tr>
		            <td>{if $require.require_time}{$require.require_time}{else}--{/if}</td>
		            <td>{$require.requirement}</td>
		            <td>{$require.addtime|date_format:"%Y-%m-%d %H:%M:%S"}</td>
		            <td>{if $require.attachment}有{else}无{/if}</td>
		            <td>{if $require.state == 0}解决中{elseif $require.state == 1}已解决{elseif $require.state == 2}已拒绝{/if}</td>		            
		            <td><a href="{$requirment_detail_link}{$require.user_requirement_id}">查看详情</a></td>
		          </tr>
		        {/foreach}
		        </tbody>
		        {/if}
		      </table>
		      <!-- s分页 -->
		      <div class="pagination">
		        <ul>
		         {$show}
		        </ul>
		      </div>
		      <!-- e分页 -->
		      <!-- e记录 -->

		</div>
		<!-- e需求列表 -->

	</div>
	<div class="clearfix"></div>
    <!-- e主内容 -->
  </div>
</section>
<!--e主内容-->
{/block}

{block name="js"}
{/block}
